package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbKeyword entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_KEYWORD", schema = "dbo", catalog = "AGDB")
public class TbKeyword implements java.io.Serializable {

	// Fields

	private String kwId;
	private TbKownledge tbKownledge;
	private String kwContext;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbKeyword() {
	}

	/** minimal constructor */
	public TbKeyword(String kwId, String kwContext) {
		this.kwId = kwId;
		this.kwContext = kwContext;
	}

	/** full constructor */
	public TbKeyword(String kwId, TbKownledge tbKownledge, String kwContext,
			String a, String b, String c) {
		this.kwId = kwId;
		this.tbKownledge = tbKownledge;
		this.kwContext = kwContext;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@Id
	@Column(name = "KW_ID", unique = true, nullable = false, length = 10)
	public String getKwId() {
		return this.kwId;
	}

	public void setKwId(String kwId) {
		this.kwId = kwId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "K_ID")
	public TbKownledge getTbKownledge() {
		return this.tbKownledge;
	}

	public void setTbKownledge(TbKownledge tbKownledge) {
		this.tbKownledge = tbKownledge;
	}

	@Column(name = "KW_CONTEXT", nullable = false, length = 20)
	public String getKwContext() {
		return this.kwContext;
	}

	public void setKwContext(String kwContext) {
		this.kwContext = kwContext;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}